/*
 * Copyright 2020 tu.cn All right reserved. This software is the
 * confidential and proprietary information of tu.cn ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Tu.cn
 */
package com.onedec.page.feign;

import com.onedec.entity.OnedecSchedule;
import com.onedec.utils.ResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author 31014
 * @date 2020/7/10 14:45
 */
@FeignClient("schedule")
public interface ScheduleClient {
    @PostMapping("schedule")
    public ResponseEntity<Void> insertSchedule(@RequestParam String date, @RequestParam String value, @RequestParam String title);

    @GetMapping("schedule")
    public ResponseEntity<List<Map<String, Object>>> selectSchedule(@RequestParam String empId);
}